<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>数据超市-价格方案</title>
		<link rel="stylesheet" href="css/style.css" />
		<link rel="stylesheet" href="css/price_plan.css" />
		<link rel="stylesheet" href="css/data_supermarket.css" />
	</head>
	<body>
		<!-- 顶部图片 -->
		<img class="plan_top" src="images/plan_top_img.png" >
		<!-- 产品信息 -->
		<div class="plan_box">
			<div class="plan_title">某某某产品</div>
			<div class="plan_title_two">推荐配合某某某产品系统解决方案使用，也可单独购买</div>
			<div>
				<ul class="data_type">
					<li>
						<div class="type_title">数据类型</div>
					</li>
					<li>
						<div class="line"></div>
						<div class="data_type_name">免费版</div>
						<div class="data_beyond">
							<p class="type_access">数据访问量</p>
							<p class="type_num">500次/天</p>
						</div>
						
						<div class="type_describe">
							<p>免费预报数据</p>
							<p>免费雷达云图数据</p>
						</div>
						<div class="data_money">￥<span>0</span>/月起</div>
						<!-- 按钮 -->
						<div class="data_btn_trial">立即试用</div>
					</li>
					<li>
						<div class="line"></div>
						<div class="data_type_name">个人版</div>
						<div class="data_beyond">
							<p class="type_access">数据访问量</p>
							<p class="type_num">500次/天</p>
							<p class="beyond">超出计费￥5/万次</p>
						</div>
						
						<div class="type_describe">
							<p>自由选购</p>
							<p>按次计费</p>
						</div>
						<div class="data_money">￥<span>800</span>/月起</div>
						<!-- 按钮 -->
						<div class="data_btn_trial">立即试用</div>
					</li>
					<li>
						<div class="line"></div>
						<div class="data_type_name">专业版</div>
						<div class="data_beyond">
							<p class="type_access">数据访问量</p>
							<p class="type_num">500次/天</p>
							<p class="beyond">超出计费￥5/万次</p>
						</div>
						
						<div class="type_describe">
							<p>自由选购</p>
							<p>按次计费</p>
						</div>
						<div class="data_money">￥<span>2000</span>/月起</div>
						<!-- 按钮 -->
						<div class="data_btn_trial">立即试用</div>
					</li>
					<li>
						<div class="line"></div>
						<div class="data_type_name">企业版</div>
						<div class="data_beyond">
							<p class="type_access">数据访问量</p>
							<p class="type_num">500次/天</p>
						</div>
						
						<div class="type_describe">
							<p>自由选购</p>
							<p>按次计费</p>
						</div>
						<div class="data_money">￥<span>10000</span>/月起</div>
						<!-- 按钮 -->
						<div class="data_btn_trial">立即试用</div>
					</li>
				</ul>
				<ul class="hour_forecast_box">
					<li class="hour_forecast">
						<div>逐小时预报</div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div> <!-- 选中图标 -->
						<div><img src="images/data_uncheck.png" ></div> <!-- 未选中图标 -->
					</li>
					<li class="hour_forecast">
						<div>逐小时预报</div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div> <!-- 选中图标 -->
						<div><img src="images/data_uncheck.png" ></div> <!-- 未选中图标 -->
					</li>
					<li class="hour_forecast">
						<div>逐小时预报</div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div> <!-- 选中图标 -->
						<div><img src="images/data_uncheck.png" ></div> <!-- 未选中图标 -->
					</li>
					<li class="hour_forecast">
						<div>逐小时预报</div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div> <!-- 选中图标 -->
						<div><img src="images/data_uncheck.png" ></div> <!-- 未选中图标 -->
					</li>
					<li class="hour_forecast">
						<div>逐小时预报</div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div>
						<div><img src="images/data_select.png" ></div> <!-- 选中图标 -->
						<div><img src="images/data_uncheck.png" ></div> <!-- 未选中图标 -->
					</li>
				</ul>
			</div>
		</div>
		<!-- 数据定制服务 -->
		<div class="custom_data">
			<div class="forecast_content">
				<div class="index_title custom_data_index">
					<p class="index_title_xian_left"></p>
					<span class="index_title_name">数据定制服务</span>
					<p class="index_title_xian_right"></p>
					<div class="title_xq">
						<p>我们已为公众及合作伙伴提供了<i id="show2" shownum="24542154">24，542，154</i>次数据定制服务</p>
					</div>
				</div>
				<div class="custom_data_box">
					<div class="custom_data_con">
						<img src="images/custom_data_img1.png" >
						<div class="custom_content">
							按需求提供定制化 天气数据解决方案按需求提供定制化
						</div>
						<div class="custom_btn_view">查看</div>
					</div>
					<div class="custom_data_con">
						<img src="images/custom_data_img2.png" >
						<div class="custom_content">
							按需求提供定制化 天气数据解决方案按需求提供定制化
						</div>
						<div class="custom_btn_view">查看</div>
					</div>
					<div class="custom_data_con">
						<img src="images/custom_data_img3.png" >
						<div class="custom_content">
							按需求提供定制化 天气数据解决方案按需求提供定制化
						</div>
						<div class="custom_btn_view">查看</div>
					</div>
					<div class="custom_data_con">
						<img src="images/custom_data_img4.png" >
						<div class="custom_content">
							按需求提供定制化 天气数据解决方案按需求提供定制化
						</div>
						<div class="custom_btn_view">查看</div>
					</div>
				</div>
				<!-- 定制开发联系信息 -->
				<div class="development_info_box">
					<div class="development_info">
						<img src="images/development_user.png" >
						<p>定制化开发联系：<span>周先生PM</span></p>
					</div>
					<div class="development_info">
						<img src="images/development_phone.png" >
						<p>M/T：<span>189967383720    023-68071292</span></p>
					</div>
					<div class="development_info">
						<img src="images/development_email.png" >
						<p>Mail：<span>T7ol@zxl.com</span></p>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript">
		$(function() {
			// 数字增加
			setInterval("Refresh();", 3000);
			
		});
		// 免费版hover事件
		$('.hour_forecast_box .hour_forecast div:nth-child(2)').hover(function (){
			dataLiHover(2);
		},function(){
			dataLiUncheck(2); 
		});
		
		$('.data_type li:nth-child(2)').hover(function(){
			dataLiHover(2);  
		},function(){
			dataLiUncheck(2);  
		})
		
		// 个人版hover事件
		$('.hour_forecast_box .hour_forecast div:nth-child(3)').hover(function (){
			dataLiHover(3);
		},function(){
			dataLiUncheck(3); 
		});
		
		$('.data_type li:nth-child(3)').hover(function(){
			dataLiHover(3);  
		},function(){
			dataLiUncheck(3);  
		})
		
		// 专业版hover事件
		$('.hour_forecast_box .hour_forecast div:nth-child(4)').hover(function (){
			dataLiHover(4);
		},function(){
			dataLiUncheck(4); 
		});
		
		$('.data_type li:nth-child(4)').hover(function(){
			dataLiHover(4);  
		},function(){
			dataLiUncheck(4);  
		})
		
		// 企业版hover事件
		$('.hour_forecast_box .hour_forecast div:nth-child(5)').hover(function (){
			dataLiHover(5);
		},function(){
			dataLiUncheck(5); 
		});
		
		$('.data_type li:nth-child(5)').hover(function(){
			dataLiHover(5);  
		},function(){
			dataLiUncheck(5);  
		})
		
		function dataLiHover(val) {
			$('.data_type li:nth-child('+ val +') .line').css("opacity","1");
			$('.data_type li:nth-child('+ val +') .line').css("opacity","1");
			$('.data_type li:nth-child('+ val +') .data_btn_trial').addClass("ac_data_btn_trial");
			if(val == 5){
				$('.data_type li:nth-child('+ val +')').addClass("forecast_border_last");
				$('.hour_forecast_box li div:nth-child('+ val +')').addClass("forecast_border_last"); 
			} else {
				$('.data_type li:nth-child('+ val +')').addClass("forecast_border");
				$('.hour_forecast_box li div:nth-child('+ val +')').addClass("forecast_border"); 
			}
			$('.hour_forecast_box li:last-child div:nth-child('+ val +')').addClass("forecast_bottom_border"); 
		}
		function dataLiUncheck(val) {
			$('.data_type li:nth-child('+ val +') .line').css("opacity","0");
			$('.data_type li:nth-child('+ val +') .data_btn_trial').removeClass("ac_data_btn_trial");
			if (val == 5) {
				$('.data_type li:nth-child('+ val +')').removeClass("forecast_border_last");
				$('.hour_forecast_box li div:nth-child('+ val +')').removeClass("forecast_border_last");
			} else {
				$('.data_type li:nth-child('+ val +')').removeClass("forecast_border");
				$('.hour_forecast_box li div:nth-child('+ val +')').removeClass("forecast_border");
			}
			$('.hour_forecast_box li:last-child div:nth-child('+ val +')').removeClass("forecast_bottom_border");  
		}
		
		function Refresh() {
			var min = 2; //生成的最小的数字，比如200
			var max = 5; //生成的最大的数字，比如500
			//增加随机数
			var shownum = parseInt(Math.random() * (max - min + 1) + min);
			//累加值
			var shownum = shownum + parseInt($('#show2').attr('shownum'));
			$('#show2').attr('shownum', shownum);
			//赋值
			$('#show2').text(formatNum(shownum));
		};
		
		//将数字串转换成带逗号的显示方式
		function formatNum(num) {
			if (!/^([+\-])?(\d+)(\.\d+)?$/.test(num)) {
				alert("wrong!");
				return num;
			}
			let a = RegExp.$1;
			let b = RegExp.$2;
			let c = RegExp.$3;
			let re = new RegExp().compile("(\\d)(\\d{3})(，|$)");
			while (re.test(b))
				b = b.replace(re, "$1，$2$3");
			return a + "" + b + "" + c;
		};
	</script>
</html>
